package com.hckjsec.cloud.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.cloud.mapper.AppletsBusinessTemplateLogMapper;
import com.hckjsec.cloud.domain.AppletsBusinessTemplateLog;
import com.hckjsec.cloud.service.IAppletsBusinessTemplateLogService;

/**
 * 小程序订阅消息发送日志Service业务层处理
 * 
 * @author cyt
 * @date 2021-08-25
 */
@Service
public class AppletsBusinessTemplateLogServiceImpl implements IAppletsBusinessTemplateLogService 
{
    @Autowired
    private AppletsBusinessTemplateLogMapper appletsBusinessTemplateLogMapper;

    /**
     * 查询小程序订阅消息发送日志
     * 
     * @param id 小程序订阅消息发送日志ID
     * @return 小程序订阅消息发送日志
     */
    @Override
    public AppletsBusinessTemplateLog selectAppletsBusinessTemplateLogById(Long id)
    {
        return appletsBusinessTemplateLogMapper.selectAppletsBusinessTemplateLogById(id);
    }

    /**
     * 查询小程序订阅消息发送日志列表
     * 
     * @param appletsBusinessTemplateLog 小程序订阅消息发送日志
     * @return 小程序订阅消息发送日志
     */
    @Override
    public List<AppletsBusinessTemplateLog> selectAppletsBusinessTemplateLogList(AppletsBusinessTemplateLog appletsBusinessTemplateLog)
    {
        return appletsBusinessTemplateLogMapper.selectAppletsBusinessTemplateLogList(appletsBusinessTemplateLog);
    }

    /**
     * 新增小程序订阅消息发送日志
     * 
     * @param appletsBusinessTemplateLog 小程序订阅消息发送日志
     * @return 结果
     */
    @Override
    public int insertAppletsBusinessTemplateLog(AppletsBusinessTemplateLog appletsBusinessTemplateLog)
    {
        return appletsBusinessTemplateLogMapper.insertAppletsBusinessTemplateLog(appletsBusinessTemplateLog);
    }

    /**
     * 修改小程序订阅消息发送日志
     * 
     * @param appletsBusinessTemplateLog 小程序订阅消息发送日志
     * @return 结果
     */
    @Override
    public int updateAppletsBusinessTemplateLog(AppletsBusinessTemplateLog appletsBusinessTemplateLog)
    {
        return appletsBusinessTemplateLogMapper.updateAppletsBusinessTemplateLog(appletsBusinessTemplateLog);
    }

    /**
     * 批量删除小程序订阅消息发送日志
     * 
     * @param ids 需要删除的小程序订阅消息发送日志ID
     * @return 结果
     */
    @Override
    public int deleteAppletsBusinessTemplateLogByIds(Long[] ids)
    {
        return appletsBusinessTemplateLogMapper.deleteAppletsBusinessTemplateLogByIds(ids);
    }

    /**
     * 删除小程序订阅消息发送日志信息
     * 
     * @param id 小程序订阅消息发送日志ID
     * @return 结果
     */
    @Override
    public int deleteAppletsBusinessTemplateLogById(Long id)
    {
        return appletsBusinessTemplateLogMapper.deleteAppletsBusinessTemplateLogById(id);
    }
}
